package fourzerofour.guoshixu.day03;

public class MyNumber {

    private double num1;
    private double num2;

    MyNumber(){

    }

    MyNumber(double num1, double num2){
        this.num1 = num1;
        this.num2 = num2;
    }

    //计算加法
    public double addition(){
        return num1+num2;
    }

    //计算加法
    public static double addition(double num1,double num2){
        return num1+num2;
    }

    //计算减法
    public double subtration(){
        return num1-num2;
    }

    //计算减法
    public static double subtration(double num1,double num2){
        return num1-num2;
    }

    //计算乘法
    public double multiplication(){
        return num1*num2;
    }

    //计算乘法
    public static double multiplication(double num1,double num2){
        return num1*num2;
    }

    //计算除法
    public double division(){
        return num1/num2;
    }

    //计算除法
    public static double division(double num1,double num2){
        return num1/num2;
    }
}
